package org.jbfilter.bean;

/**
 * Accessor to a property of a bean.
 * @author Marcus Adrian
 *
 * @param <E> the bean type
 * @param <T> the property type
 */
public interface PropertyAccessor<E, T>{
	/**
	 * Indicates the beans's property to be used for filtering.
	 * @param bean an instance of the beans to filter
	 * @return the property to consider for filtering
	 */
	T getPropertyValue(E bean);
}
